package tech.waterism.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tech.waterism.enums.CatalogEnum;
import tech.waterism.enums.LogicEnum;
import tech.waterism.enums.ValueTypeEnum;

@Data
public class DispatchConstraint extends DispatchBase {
    @ApiModelProperty(value = "逻辑")
    private LogicEnum logic;
    /**
     * 值类型
     */
    @ApiModelProperty(value = "值类型")
    private ValueTypeEnum valueType;
    @ApiModelProperty(value = "固定值")
    private Double value;
    /**
     * 特征值
     */
    @ApiModelProperty(value = "特征值")
    private CatalogEnum catalog;

    @JsonIgnore
    @ApiModelProperty(value = "分段信息")
    private SegInfo segInfo;
    /**
     * 控泄条件
     */
    private PrincipleRecord ctlCond;
}
